package com.ruoyi.project.modules.tableIndex.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 索引信息对象 t_table_index
 * 
 * @author smallrain
 * @date 2022-07-09
 */
public class TableIndex extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 表id */
    private Long tableId;

    /** 索引名称 */
    @Excel(name = "索引名称")
    private String indexName;

    /** 索引英文名称 */
    @Excel(name = "索引英文名称")
    private String indexEnName;

    /** 索引类型 */
    @Excel(name = "索引类型")
    private String indexType;

    /** 索引方法 */
    @Excel(name = "索引方法")
    private String indexFunction;
    private String fieldName;

    private List<TableIndexField> tableIndexFieldList;

    public List<TableIndexField> getTableIndexFieldList() {
        return tableIndexFieldList;
    }

    public void setTableIndexFieldList(List<TableIndexField> tableIndexFieldList) {
        this.tableIndexFieldList = tableIndexFieldList;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setIndexName(String indexName) 
    {
        this.indexName = indexName;
    }

    public String getIndexName() 
    {
        return indexName;
    }
    public void setIndexEnName(String indexEnName) 
    {
        this.indexEnName = indexEnName;
    }

    public String getIndexEnName() 
    {
        return indexEnName;
    }
    public void setIndexType(String indexType) 
    {
        this.indexType = indexType;
    }

    public String getIndexType() 
    {
        return indexType;
    }
    public void setIndexFunction(String indexFunction) 
    {
        this.indexFunction = indexFunction;
    }

    public String getIndexFunction() 
    {
        return indexFunction;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableId", getTableId())
            .append("indexName", getIndexName())
            .append("indexEnName", getIndexEnName())
            .append("indexType", getIndexType())
            .append("indexFunction", getIndexFunction())
            .append("remark", getRemark())
            .toString();
    }
}